package com.ys.entity.business;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`ys_img_group`", catalog="id")
public class YsImgGroup extends BaseEntity<YsImgGroup> {

	private Long id; // 主键ID
	private Integer areaType; // 地区类型，见ENUM
	private String name; // 图库名称
	private Integer capacity; // 容量限制
	private String remark; // 
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public YsImgGroup setId(Long id) {
		this.id = id;
		return this;
	}
	public Integer getAreaType() {
		return areaType;
	}
	public YsImgGroup setAreaType(Integer areaType) {
		this.areaType = areaType;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsImgGroup setName(String name) {
		this.name = name;
		return this;
	}
	public Integer getCapacity() {
		return capacity;
	}
	public YsImgGroup setCapacity(Integer capacity) {
		this.capacity = capacity;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public YsImgGroup setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsImgGroup setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsImgGroup setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsImgGroup setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsImgGroup ysImgGroup(
		Integer areaType,
		String name,
		Integer capacity,
		String remark,
		Integer status
			) {
		YsImgGroup entity = new YsImgGroup();
		entity.setAreaType(areaType);
		entity.setName(name);
		entity.setCapacity(capacity);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}